import Vue from 'vue'
import App from './App.vue'
import router from './routers'
import store from './stores'
import axios from 'axios' 
import { picFix } from './utils/filter'
import VueLazyLoad from 'vue-lazyload'

Vue.prototype.$axios = axios
Vue.config.productionTip = false
Vue.prototype.$picFix = picFix

Vue.use(VueLazyLoad, {
  loading: require('./assets/images/loading.gif')
})


import Scroller from '@/components/Scroller'
Vue.component('scroller', Scroller)

import Loading from '@/components/Loading'
Vue.component('loading', Loading)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
